<?php
namespace app\common\config\validate;


use think\Validate;

class ConfigBanquetValidate extends Validate
{
    protected $rule = [
        'id' => ['require'],
        'title' => ['require'],
    ];

    protected $message = [
        'id.require' => '参数错误',
        'title.require' => '套餐名称不能为空',
    ];

    protected $scene = [
        'create' => ['title'],
        'edit' => ['id','title'],
        'delete' => ['id'],
    ];
}